<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateApiInfosTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('api_infos', function (Blueprint $table) {
            $table->increments('id');
            $table->string('name')->default('')->comment('接口名称');
            $table->string('aliasname')->default('')->comment('接口别名');
            $table->string('path')->default('')->comment('接口路径');
            $table->text('description')->nullable()->comment('描述');
            $table->string('admin_user_id')->default('0')->comment('开发人员');
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('api_infos');
    }
}
